//
//  ImageAnimationViewController.h
//  ImageAnimation
//
//  Created by apple on 8/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FixFrame;
@class DraggableView;
@class StartViewController;
@interface ImageAnimationViewController : UIViewController{

    int position;
    NSTimer *timer;
    NSMutableArray *array;

    NSMutableArray *fixFrameArray;
    FixFrame *canFillFrame;
    NSMutableArray *randomArray;
    UIView *menuView;
}
@property (nonatomic,assign) NSInteger rowsCount;
@property (nonatomic,assign) NSInteger columnsCount;
@property (nonatomic,retain) FixFrame *clearFixFrame;
@property (nonatomic,retain) StartViewController *startViewController;
- (void)runAnimation;
- (NSMutableArray *)devideImage:(UIImage *)image;

- (void)moveLeft:(DraggableView *)draggableView;
- (void)moveUp:(DraggableView *)draggableView;
- (void)moveRight:(DraggableView *)draggableView;
- (void)moveDown:(DraggableView *)draggableView;
- (FixFrame *)findFixFrameHorizontal:(NSInteger)h andVertical:(NSInteger)v;
- (CGRect)getFrameFromHorizontal:(NSInteger)h andVertical:(NSInteger)v;
- (CGRect)getFrameFromPosition:(NSInteger)position;
@end
